<%@ page contentType="text/javascript" %>

<jsp:useBean id="applicationPath" scope="request" type="java.lang.String" />
<jsp:useBean id="includeJQuery" scope="request" type="java.lang.Boolean" />

function BugReport_IncludeJavaScript(jsFile) {
	document.write('<script type="text/javascript" src="' + jsFile + '"></script>');
}

<% if(includeJQuery) { %>
	// loading JS library files
	BugReport_IncludeJavaScript('<%= applicationPath %>/ressources/jquery-1.7.1.min.js');
	BugReport_IncludeJavaScript('<%= applicationPath %>/ressources/jquery-ui-1.7.3.custom.min.js');
<% } %>